import {Component, OnInit} from '@angular/core';
import {BasePage} from '../../common/basePage';
import {NavController, ToastController} from '@ionic/angular';
import {ActivatedRoute} from '@angular/router';

/**
 * 交易记录详情
 */
@Component({
  selector: 'app-user-records-detail',
  templateUrl: './user-records-detail.page.html',
  styleUrls: ['./user-records-detail.page.scss'],
})
export class UserRecordsDetailPage extends BasePage implements OnInit {

  public data: any;

  constructor(
    public navCtrl: NavController,
    public toastCtrl: ToastController,
    private routeInfo: ActivatedRoute,
  ) {
    super(navCtrl, toastCtrl);
  }

  ngOnInit() {
    // 接收详情信息
    this.data = JSON.parse(this.routeInfo.snapshot.params['data']);
  }

}
